0b7d5d72040877aa94dc3e23ae8da3d91f0df14f
[openwrt/openwrt.git] /
1 From deb3ddeb18652118956fb581a39ac299e1ee5623 Mon Sep 17 00:00:00 2001
2 From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
3 Date: Fri, 7 Mar 2025 02:26:25 +0200
4 Subject: [PATCH] wifi: rtw88: Enable the new RTL8814AE/RTL8814AU drivers
5
6 RTL8814A is a wifi 5 chip with 4 RF paths (chains), 3 spatial streams,
7 and probably no Bluetooth.
8
9 The USB-based RTL8814AU can reach 800 Mbps in the 5 GHz band in USB 3
10 mode. In USB 2 mode it only uses 2 spatial streams.
11
12 The PCI-based RTL8814AE is not as popular and didn't get as much
13 testing so it's unclear how fast it goes. It's more like a bonus on top
14 of the RTL8814AU support.
15
16 Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
17 Acked-by: Ping-Ke Shih <pkshih@realtek.com>
18 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
19 Link: https://patch.msgid.link/5795b0a7-511e-40b5-ac36-476b63f174c7@gmail.com
20 ---
21 drivers/net/wireless/realtek/rtw88/Kconfig | 25 +++++++++++++++++++++
22 drivers/net/wireless/realtek/rtw88/Makefile | 9 ++++++++
23 2 files changed, 34 insertions(+)
24
25 --- a/Kconfig.local
26 +++ b/Kconfig.local
27 @@ -1138,6 +1138,9 @@ config BACKPORTED_RTW88_8821A
28 config BACKPORTED_RTW88_8812A
29 tristate
30 default RTW88_8812A
31 +config BACKPORTED_RTW88_8814A
32 + tristate
33 + default RTW88_8814A
34 config BACKPORTED_RTW88_8822BE
35 tristate
36 default RTW88_8822BE
37 @@ -1183,6 +1186,12 @@ config BACKPORTED_RTW88_8821AU
38 config BACKPORTED_RTW88_8812AU
39 tristate
40 default RTW88_8812AU
41 +config BACKPORTED_RTW88_8814AE
42 + tristate
43 + default RTW88_8814AE
44 +config BACKPORTED_RTW88_8814AU
45 + tristate
46 + default RTW88_8814AU
47 config BACKPORTED_RTW88_DEBUG
48 tristate
49 default RTW88_DEBUG
50 --- a/drivers/net/wireless/realtek/rtw88/Kconfig
51 +++ b/drivers/net/wireless/realtek/rtw88/Kconfig
52 @@ -68,6 +68,10 @@ config RTW88_8812A
53 depends on m
54 select RTW88_88XXA
55
56 +config RTW88_8814A
57 + tristate
58 + depends on m
59 +
60 config RTW88_8822BE
61 tristate "Realtek 8822BE PCI wireless network adapter"
62 depends on m
63 @@ -251,6 +255,30 @@ config RTW88_8812AU
64
65 802.11ac USB wireless network adapter
66
67 +config RTW88_8814AE
68 + tristate "Realtek 8814AE PCI wireless network adapter"
69 + depends on m
70 + depends on PCI
71 + select RTW88_CORE
72 + select RTW88_PCI
73 + select RTW88_8814A
74 + help
75 + Select this option will enable support for 8814AE chipset
76 +
77 + 802.11ac PCIe wireless network adapter
78 +
79 +config RTW88_8814AU
80 + tristate "Realtek 8814AU USB wireless network adapter"
81 + depends on m
82 + depends on USB
83 + select RTW88_CORE
84 + select RTW88_USB
85 + select RTW88_8814A
86 + help
87 + Select this option will enable support for 8814AU chipset
88 +
89 + 802.11ac USB wireless network adapter
90 +
91 config RTW88_DEBUG
92 bool "Realtek rtw88 debug support"
93 depends on RTW88_CORE
94 --- a/drivers/net/wireless/realtek/rtw88/Makefile
95 +++ b/drivers/net/wireless/realtek/rtw88/Makefile
96 @@ -94,6 +94,15 @@ rtw88_8821au-objs := rtw8821au.o
97 obj-$(CPTCFG_RTW88_8812AU) += rtw88_8812au.o
98 rtw88_8812au-objs := rtw8812au.o
99
100 +obj-$(CPTCFG_RTW88_8814A) += rtw88_8814a.o
101 +rtw88_8814a-objs := rtw8814a.o rtw8814a_table.o
102 +
103 +obj-$(CPTCFG_RTW88_8814AE) += rtw88_8814ae.o
104 +rtw88_8814ae-objs := rtw8814ae.o
105 +
106 +obj-$(CPTCFG_RTW88_8814AU) += rtw88_8814au.o
107 +rtw88_8814au-objs := rtw8814au.o
108 +
109 obj-$(CPTCFG_RTW88_PCI) += rtw88_pci.o
110 rtw88_pci-objs := pci.o
111
112 --- a/local-symbols
113 +++ b/local-symbols
114 @@ -375,6 +375,7 @@ RTW88_8821C=
115 RTW88_88XXA=
116 RTW88_8821A=
117 RTW88_8812A=
118 +RTW88_8814A=
119 RTW88_8822BE=
120 RTW88_8822BS=
121 RTW88_8822BU=
122 @@ -390,6 +391,8 @@ RTW88_8821CS=
123 RTW88_8821CU=
124 RTW88_8821AU=
125 RTW88_8812AU=
126 +RTW88_8814AE=
127 +RTW88_8814AU=
128 RTW88_DEBUG=
129 RTW88_DEBUGFS=
130 RTW88_LEDS=